package com.kujie.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 提示词角色枚举
 *
 * @author check
 * @date 2025-07-29
 */
@Getter
@AllArgsConstructor
public enum PromptRoleEnum {
    LIGHT_QUERY("灯光查询", "light-query"),
    LIGHT_CONTROL("灯光控制", "light-control");
    private final String role;
    private final String roleName;

    public static String getRoleName(String role) {
        for (PromptRoleEnum value : PromptRoleEnum.values()) {
            if (value.getRole().equals(role)) {
                return value.getRoleName();
            }
        }
        return "default";
    }
}
